import request from "../utils/request";

// 歌单接口----------------------------------

// 获取歌单列表
export const fetchPlaylistData = (data) => {
  return request({
    url: "/web/playlist/getList",
    method: "post",
    data: data,
  });
};

// 创建/修改歌单
export const fetchPlaylistCreate = (data) => {
  return request({
    url: "/web/playlist/create",
    method: "post",
    data: data,
  });
};

// 删除歌单
export const fetchDeletePlaylist = (data) => {
  return request({
    url: "/web/playlist/deleteById",
    method: "post",
    data: data,
  });
};

// 上架歌单

export const fetchSoldInPlaylist = (data) => {
  return request({
    url: "/web/playlist/soldInPlaylist",
    method: "post",
    data: data,
  });
};

// 上架歌单

export const fetchSoldOutPlaylist = (data) => {
  return request({
    url: "/web/playlist/soldOutPlaylist",
    method: "post",
    data: data,
  });
};
